//导入express
const express = require('express');
//创建应用对象
const app = express();
//创建路由规则
app.get('/home', (req, res) => {
  res.send('hello express');
});

//监听端口
app.listen(3000, () => {
  console.log('server is running at port 3000');
})

